package com.ruoyi.domain;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 保函对象 basic_guarantee_info
 *
 * @author lcd
 * @date 2021-07-27
 */
@TableName(value = "basic_guarantee_info")
@Data
public class GuaranteeInfo extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    @TableId("gua_work_id" )
    private Long guaWorkId;

    /** 项目主键 */
    @Excel(name = "项目主键")
    @TableField("prj_id" )
    private Long prjId;

    /** 类型 1电子 2纸质 */
    @Excel(name = "类型 1电子 2纸质")
    @TableField("type" )
    private String type;

    /** 保费 */
    @Excel(name = "保费")
    @TableField("guarantee_cost" )
    private BigDecimal guaranteeCost;

    /** 保单号 */
    @Excel(name = "保单号")
    @TableField("policy_no" )
    private String policyNo;

    /** 项目名称 */
    @Excel(name = "项目名称")
    @TableField("prj_name" )
    private String prjName;

    /** 投保时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "投保时间", width = 30, dateFormat = "yyyy-MM-dd")
    @TableField("insure_time" )
    private Date insureTime;

    /** 状态 1初始 2审核 3完成 */
    @Excel(name = "状态 1初始 2审核 3完成")
    @TableField("status" )
    private String status;

    /** 0：正常 1：删除 */
    @TableField("del_flag" )
    @TableLogic
    private String delFlag;

    /** 交易中心(字典) */
    @Excel(name = "交易中心(字典)")
    @TableField("trade_center" )
    private String tradeCenter;

}